package service.Impl;

import mapper.Impl.adminMapperImpl;
import mapper.adminMapper;
import pojo.admin;
import service.adminService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class adminServiceImpl implements adminService {
    adminMapper adminMapper = new adminMapperImpl();
    @Override
    public admin getAdmin(HttpServletRequest request, HttpServletResponse response) {
        return (pojo.admin) request.getSession().getAttribute("user");
    }
}
